package com.sharemarking.wa.platform.dto.orderCommon;


import java.util.List;

/**
 * @author dxy
 */
public class WasteListDto {
    private Integer wasteId;
    private String wasteName;
    private Double weight;
    private Double realWeight;
    private Double receiveWeight;
    private String pic;
    private String wasteTypeName;
    private String characteristics;
    private String form;
    private String transferPurpose;
    private String packageType;
    private String dangerousIngredients;
    private String measure;
    private String weightPicList;

    public Integer getWasteId() {
        return wasteId;
    }

    public void setWasteId(Integer wasteId) {
        this.wasteId = wasteId;
    }

    public String getWasteName() {
        return wasteName;
    }

    public void setWasteName(String wasteName) {
        this.wasteName = wasteName;
    }

    public Double getWeight() {
        if (weight != null) {
            return Double.valueOf(String.format("%.3f", weight * 0.001d));
        }
        return null;
    }

    public void setWeight(Double weight) {
        this.weight = weight;
    }

    public Double getRealWeight() {
        if (realWeight != null) {
            return Double.valueOf(String.format("%.3f", realWeight * 0.001d));
        }
        return null;
    }

    public void setRealWeight(Double realWeight) {
        this.realWeight = realWeight;
    }

    public Double getReceiveWeight() {
        if (receiveWeight != null) {
            return Double.valueOf(String.format("%.3f", receiveWeight * 0.001d));
        }
        return null;
    }

    public void setReceiveWeight(Double receiveWeight) {
        this.receiveWeight = receiveWeight;
    }

    public String getPic() {
        return pic;
    }

    public void setPic(String pic) {
        this.pic = pic;
    }

    public String getWasteTypeName() {
        return wasteTypeName;
    }

    public void setWasteTypeName(String wasteTypeName) {
        this.wasteTypeName = wasteTypeName;
    }

    public String getCharacteristics() {
        return characteristics;
    }

    public void setCharacteristics(String characteristics) {
        this.characteristics = characteristics;
    }

    public String getForm() {
        return form;
    }

    public void setForm(String form) {
        this.form = form;
    }

    public String getTransferPurpose() {
        return transferPurpose;
    }

    public void setTransferPurpose(String transferPurpose) {
        this.transferPurpose = transferPurpose;
    }

    public String getPackageType() {
        return packageType;
    }

    public void setPackageType(String packageType) {
        this.packageType = packageType;
    }

    public String getDangerousIngredients() {
        return dangerousIngredients;
    }

    public void setDangerousIngredients(String dangerousIngredients) {
        this.dangerousIngredients = dangerousIngredients;
    }

    public String getMeasure() {
        return measure;
    }

    public void setMeasure(String measure) {
        this.measure = measure;
    }

    public String[] getWeightPicList() {
        if (weightPicList != null) {
            return weightPicList.split(",");
        }
        return null;
    }

    public void setWeightPicList(String weightPicList) {
        this.weightPicList = weightPicList;
    }
}
